package com.huaxia.day4a;

public class Person {
    /**
     * 身份证
     */
    private String idCard;

    public String name;

    protected int age;

    String address;
    /**
     * 静态变量
     */
    public static String gender;
    /**
     * 静态不可变常量
     */
    public static final String GENDER_F = "F";
    public static final String GENDER_M = "M";

    // 访问级别
    protected void speak() {
        System.out.println("person speak 方法");
    }

    protected static void eat() {
        System.out.println("start eat");

    }

    static void jump() {
        System.out.println("start jump");

    }

    private static void sing() {
        System.out.println("start sing");

    }


    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
